set(ENCRYPT_PROJECT_NAME mdEncryptTest)
set(VERIFY_PROJECT_NAME mdVerifyTest)
set(CHANGE_PROJECT_NAME mdChangeTest)

include_directories(${CMAKE_SOURCE_DIR}/include)

file(GLOB_RECURSE testHeaderFiles "${CMAKE_SOURCE_DIR}/include/*.h")
set(INCLUDE_FILES_LIST
    ${testHeaderFiles}
)

# set(ENCRYPT_SOURCE_FILES_LIST
# encrypt_test.c
# )

ADD_EXECUTABLE(${ENCRYPT_PROJECT_NAME} ${INCLUDE_FILES_LIST} encrypt_test.c)
ADD_EXECUTABLE(${VERIFY_PROJECT_NAME} ${INCLUDE_FILES_LIST} verify_test.c)
ADD_EXECUTABLE(${CHANGE_PROJECT_NAME} ${INCLUDE_FILES_LIST} test_cpp.cpp)

link_directories(${CMAKE_SOURCE_DIR}/target/lib)


# target_include_directories(${ENCRYPT_PROJECT_NAME}
# PUBLIC
# ${CMAKE_SOURCE_DIR}/target/include
# )
# target_include_directories(${VERIFY_PROJECT_NAME}
# PUBLIC
# ${CMAKE_SOURCE_DIR}/target/include
# )
# target_include_directories(${CHANGE_PROJECT_NAME}
# PUBLIC
# ${CMAKE_SOURCE_DIR}/target/include
# )


target_link_libraries(${ENCRYPT_PROJECT_NAME}  encrypt)
target_link_libraries(${VERIFY_PROJECT_NAME}  encrypt)
target_link_libraries(${CHANGE_PROJECT_NAME}  encrypt)


INSTALL(TARGETS ${ENCRYPT_PROJECT_NAME} 
                ${VERIFY_PROJECT_NAME} 
                ${CHANGE_PROJECT_NAME} 
        RUNTIME DESTINATION bin
)